/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: WebConfig
 * @Package com.rx.config
 * @Description: 首页配置
 * @author: 陈锦韬
 * @date: 2020\5\30 0030
 * @version V1.0
 * @Copyright: 2020 陈锦韬  All rights reserved.
 */
package com.rx.core.bean;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author: Administrator
 * @Description: 首页配置
 * @date: 2020\5\30 0030
 */
@Configuration
public class RxWebConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        // 重定向
        //registry.addViewController("/").setViewName("redirect:/login-view");
        //registry.addViewController("/login-view").setViewName("login");
    }
}
